home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc2_x / tcprogud.sit / TC Prog Guide / card_16372.txt < prev    next >
Text File  |  1991-02-27  |  518b  |  30 lines

  1. -- card: 16372 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 4755
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 4
  9. ----- text -----
  10. For example, the following function returns the square of its argument.
  11.  
  12. ANSI C:
  13.  
  14.     float   square(float x)      /*  function prototype  */
  15.     {
  16.         return x*x;
  17.     }
  18.  
  19.  
  20. Pre-ANSI C:
  21.  
  22.     float  square(x)                /*  not an ANSI C prototype  */
  23.     float  x;
  24.     {
  25.         return x*x;
  26.     }
  27.  
  28. -- part contents for background part 7
  29. ----- text -----
  30. 85